package com.zhouxiaoge.physical.partitioning;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author 周小哥  gqzmy@163.com 2022/8/9 16:39
 */

public class GlobalTest {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

        env.fromElements(1, 2, 3, 4, 5, 6, 7, 8).global().print().setParallelism(2);
        env.execute();

    }
}
